package org.gd.hellospring;

import org.gd.hellospring.annotations.LogToDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SpringDao {

    @LogToDB
    @Autowired
    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public String getName() {
        return getClass().getName();
    }

    public void throwIt() {
        throw new RuntimeException("Simple throw");
    }
}
